<?php

namespace App\Http\Requests\Order;

use App\Http\Requests\CommonRequest;

class CreateRequest extends CommonRequest
{

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'app_id' => ['required'],
            'out_trade_no' => ['required'],
            'description' => ['required'],
            'pay_amount' => ['required'],
            'payment_method' => ['required'],
            'method' => ['required'],
            'sandbox' => [],
            'auth_openid' => [],
            'user_id' => [],
            'openid' => [],
            'auth_code' => [],
            'return_url' => [],
            'notify_url' => [],
        ];
    }


    /**
     * 获取已定义的验证规则的错误消息。
     * @return array
     */
    public function messages()
    {
        return [
        ];
    }

}
